Run build-time tests with a D-Bus session bus via dbus-run-session
authorSimon McVittie <smcv@debian.org>
Fri, 8 May 2020 21:40:15 +0000 (22:40 +0100)
committerSimon McVittie <smcv@debian.org>
Mon, 6 Jul 2020 09:43:40 +0000 (10:43 +0100)
debian/rules

index 7db519eff20d5f161fa71312406e39055b129200..0a499c142f195df990f857c7ce0bb767e1319fb1 100755 (executable)
@@ -176,6 +176,7 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
        glib-compile-schemas debian/build/glib-2.0/schemas/
        # Remove LD_PRELOAD so we don't run with fakeroot, which makes dbus-related tests fail
        env -u LD_PRELOAD \
+       dbus-run-session -- \
        xvfb-run -a -s "-screen 0 1024x768x24" \
        debian/run-with-locales \
                --generate de_DE.UTF-8 \